package 数组;

public class 二维数组_遍历 {

    //遍历：
    public static void main(String[] args) {
        //int arr[]={1,2,3};
        int arr[][]={// new int[2][3]
                {1,2,3},
                {4,5,6,6,6,6,6,6,6,6},
                {4,5,6},
                {4,5,6,8,7,8,9,9,9,5,9,0,8},
                {4,5,6}
        };
        //for
        for (int x=0;x<arr.length;x++){//arr.length==>2
            //System.out.println(arr[x]);//一维数组首地址  [I@7c30a502  [I@49e4cb85
            for(int y=0;y<arr[x].length;y++){//arr[x].length==>3
                System.out.print(arr[x][y]+"  ");
            }
            System.out.println();
        }

    }
}
